package com.skywolf.chem.common.context;


public class RequestContext {

    public static ThreadLocal<LoginUser> currentUser = new ThreadLocal<>();


    public static void setLoginUser(LoginUser loginUser) {
        currentUser.set(loginUser);
    }

    public static LoginUser getLoginUser() {
        return currentUser.get();
    }

    public static void removeLoginUser() {
        currentUser.remove();
    }
}
